Sending
MIDI Messages with Stream Buffers
When your
application works with stream buffers, it uses the midiStreamOut
After you use
midiStreamOut to send a stream buffer of data, you must wait until the
device driver is finished with the data block before freeing it. If you are
sending multiple data blocks, you must monitor the completion of each data
block so you know when to send additional blocks. For information about
different techniques for monitoring data-block completion, see Managing MIDI
Data Blocks